package com.share;

import java.util.Random;

/**
 * @desc:
 * @author:caifan
 * @date:2020/4/4
 */
public class StaticTest {
    public static void main(String[] args) {
        System.out.println("========son.num:" + Son.num);
    }
}

class Parent {
//    public static final  int num = 1;
//    public static int num = 1;
    public static final int num = new Random().nextInt(10);

    static {
        System.out.println("=====2");
    }
}

class Son extends Parent {
    static {
        System.out.println("===3");
    }
}
